package com.fix.day2aop.impl;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import com.fix.day2aop.StudentService;

@Component("temo")
public class StudentServiceImpl implements StudentService{
	
	Logger log = Logger.getLogger(StudentServiceImpl.class);

	public void eat(String m) {
//		int n=9/0;
		log.debug("调试信息");
		log.info("一般信息");
		log.warn("警告信息");
		log.error("错误信息");
		System.out.println("学生准备吃"+ m);
	}

}
